package com.hrrt.home.dao.model;

import java.io.Serializable;
import java.util.Date;

public class HomeRoom implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 基础房间id
     *
     * @mbg.generated
     */
    private Integer roomBasicId;

    /**
     * 网关id
     *
     * @mbg.generated
     */
    private Integer gatewayId;

    /**
     * 用户指定房间名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private String basename;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoomBasicId() {
        return roomBasicId;
    }

    public void setRoomBasicId(Integer roomBasicId) {
        this.roomBasicId = roomBasicId;
    }

    public Integer getGatewayId() {
        return gatewayId;
    }

    public void setGatewayId(Integer gatewayId) {
        this.gatewayId = gatewayId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBasename() {
        return basename;
    }

    public void setBasename(String basename) {
        this.basename = basename;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomBasicId=").append(roomBasicId);
        sb.append(", gatewayId=").append(gatewayId);
        sb.append(", name=").append(name);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HomeRoom other = (HomeRoom) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomBasicId() == null ? other.getRoomBasicId() == null : this.getRoomBasicId().equals(other.getRoomBasicId()))
            && (this.getGatewayId() == null ? other.getGatewayId() == null : this.getGatewayId().equals(other.getGatewayId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomBasicId() == null) ? 0 : getRoomBasicId().hashCode());
        result = prime * result + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}